package priv.abadstring.study.pojo;

import java.io.Serializable;

/**
 * 使用 Dubbo 要求传输的对象必须实现序列化接口
 *
 * @author aBadString
 * @date 2021-06-14 18:59:17
 */
public class User implements Serializable {
    private static final long serialVersionUID = -121212123287878755L;

    private Long id;
    private String username;
    private String password;
    private Integer age;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public Integer getAge() {
        return age;
    }
    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", age=" + age +
                '}';
    }
}
